package domain;
/*
  Represents the Human player.
*/
/*
  IMPLEMENTATION STATUS
   - New class moveQueue(interacts with the GUI).
 */
public class Human extends Player{

    private UserInputQueue queue;
    
    // Constructor.
    public Human(String name, int playerID, UserInputQueue queue) {
        super(name, playerID);
        this.queue = queue;
    }

    // Returns a move from the moveQueue.
   @Override
    public Move makeMove(GameGrid g) {
        Move move = new Move(0,0);
         try {
            move =  queue.popQueue();
        } catch (InterruptedException ex) {
            System.out.println("Queue error, could not get the move!");
        }
         //g.makeMove(super.getPlayerID(), move.getX(), move.getY());
        return move;
    }

    
    
}

